package com.yong.service;

import com.spring.*;

/**
 * @Author: huangYong
 * @Date: 2021/9/4 10:10
 */
//@Component
@Scope
public class UserService implements InitializingBean {

    @Autowired
    private OrderService orderService;

    public void  test(){
        System.out.println(orderService);
    }

    @PostConstruct
    public void execute(){
        System.out.println("初始化前需要执行的方法");
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("初始化执行的方法");
    }
}
